package cn.xsshome.mvcdo.controller.rest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping(value="rest/common")
@Scope("prototype")
@SuppressWarnings("all")
public class CommonRestController {
    private static Logger logger = LoggerFactory.getLogger(CommonRestController.class);

    @RequestMapping(value = "/updateresult",method = {RequestMethod.POST})
    public void updateStats( HttpServletRequest request, HttpServletResponse response){
        logger.info("==userid:{}",request.getParameter("userid"));
        logger.info("==testResults:{}",request.getParameter("testResults"));
        logger.info("==clzlevel:{}",request.getParameter("clzlevel"));
    }
}
